Certainly! A “Hello, World!” program is often the first program written by beginners learning a new programming language. Here’s an example in the C programming language:
This simple program uses the printf function from the stdio.h library to display “Hello, World!” on the screen. The main function is the entry point of the program, and in this case, it contains the code to print the message. The \n represents a newline character, which moves the cursor to the next line after printing.
When this C program is compiled and executed, it will display “Hello, World!” in the console or terminal window.
Program to Display “Hello, World!”
#include
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}
Output
Hello, World!